namespace ASPNET.StarterKit.IssueTracker.BusinessLogicLayer
{
    using System;
    using System.Web;

    public class ITSecurity
    {
        public static string GetName()
        {
            return ((CustomPrincipal) HttpContext.Current.User).Name;
        }

        public static int GetUserID()
        {
            return ((CustomPrincipal) HttpContext.Current.User).UserID;
        }

        public static string GetUserRole()
        {
            return ((CustomPrincipal) HttpContext.Current.User).UserRole;
        }
    }
}

